﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;

namespace ReceiptPrint.Models
{
    public class ExcelFile:TopBasePoco
    {
        [Key]
        [DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.None)]
        public new long ID { get; set; }
        [Display(Name = "名称")]
        public string Name { get; set; }

        [Display(Name = "字体大小")]
        public float FontSize { get; set; } = 7.5f;

        [Display(Name = "文件")]
        [Required]
        public Guid FileId { get; set; }
        public FileAttachment File { get; set; }

        [Display(Name = "标题")]
        public string Header { get; set; }
        [Display(Name = "子标题")]
        public string SubHeader { get; set; }

        [Display(Name = "注脚")]
        public string Footer { get; set; }

        public List<Template> Templates { get; set; }
    }
}
